module.exports = {
  publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
  devServer: {
    port: 8080,
    proxy: {
      "/api": {
        target: "http://192.168.10.230:8079",
        changeOrigin: true,
        headers: {
          'host': 'cmdb_resource.easyops-only.com',
          'org': '1577760',
          'user': 'easyops',
          'Content-Type': 'application/json'
        },
        ws: true,
        pathRewrite: {
          "^/api": ""
        }
      }
    }
  }
};
